package com.cssw.fyzb.busi.util;

/**
 * @author Feng Chen
 */
public class Bizs {

    public static Biz UNKNOWN_USER = Biz.of(10001, "账号或密码不正确");
    public static Biz ERROR_VERIFY = Biz.of(10002, "短信验证码有误");
    public static Biz ERROR_INVITCODE = Biz.of(10003, "邀请码有误");
    public static Biz UNMATCH_IDCARD = Biz.of(10004, "身份证/手机号/姓名不匹配");
    public static Biz UNMATCH_FACE = Biz.of(10005, "身份证/姓名/人脸不匹配");
    public static Biz ERROR_DEVICE = Biz.of(10006, "与绑定设备不匹配");
    public static Biz UNKNOWN_TRADE = Biz.of(10007, "未知业务类型");
    public static Biz ERROR_REGISTERED = Biz.of(10008, "号码已被注册");
    public static Biz USER_NOT_EXISTS = Biz.of(10009, "用户不存在");
    public static Biz USER_IMSI_ERRO = Biz.of(10010, "用户账号与设备不匹配，请联系管理员解绑操作");
    public static Biz FROZEN_USER = Biz.of(10011, "用户已经被冻结，请联系客服!");
    public static Biz USER_IMSI_USED_ERROR = Biz.of(10012, "该设备已被##mobile##绑定，如有疑问，请联系客服");
    public static Biz ERROR_REGISTER_FAIL = Biz.of(10013, "注册失败");
    public static Biz CHG_NICKNAME_ERROR = Biz.of(10014, "修改昵称失败");
    public static Biz CHG_AVATAR_ERROR = Biz.of(10015, "修改头像失败");
    public static Biz UNION_MOBILE_USER_NOT_EXISTS = Biz.of(10016, "手机号码用户不存在，请输入邀请码");

    public static Biz UNION_OPENID_NOT_EXISTS = Biz.of(10017, "第三方登录未注册");

    public static Biz USER_NO_FACE_AUTH = Biz.of(10018, "您还未通过实名认证");

    public static Biz ERROR_GRATI = Biz.of(11001, "感恩条件不满足");
    public static Biz ERROR_DEGRADE_GRATI = Biz.of(11002, "感恩降级条件不满足");

    public static Biz ERROR_BALANCE_LESS = Biz.of(21001, "账户余额不足");
    public static Biz ERROR_TRADE_PWD = Biz.of(21002, "交易密码不正确");
    public static Biz ERROR_TRADE_IMSI = Biz.of(21003, "交易IMSI不能为空");
    public static Biz ERROR_MEDIA_BUY_TYPE = Biz.of(21004, "只支持利是分和贡献值购买");


    public static Biz ERROR_FORMAT_LOGIN_PWD = Biz.of(30001, "登录密码格式不满足6-18位");
    public static Biz ERROR_FORMAT_TRADE_PWD = Biz.of(30002, "交易密码格式不满足6位数字");


    public static Biz ERROR_NULL_PWD = Biz.of(40001, "请先通过手机验证码登陆，再重置密码");
    public static Biz ERROR_NULL_TRADE_PWD = Biz.of(40002, "请先通过手机验证码登陆，再重置交易APP密码");

    public static Biz ERROR_REGISTER_INVITER_MODE = Biz.of(50001, "邀请人不能为空");
    public static Biz ERROR_REGISTER_INVITER_LIMIT_MODE = Biz.of(50002, "无法注册，邀请人直推用户超过上限");

    public static Biz ERROR_LIVE_NOT_ANCHOR = Biz.of(60001, "未成为主播");
    public static Biz ERROR_LIVE_LIVING = Biz.of(60002, "正在直播");
    public static Biz ERROR_LIVE_FORBID = Biz.of(60003, "禁止直播");
    public static Biz ERROR_LIVE_UNKNOWN_ROOM = Biz.of(60004, "未知直播间");
    public static Biz ERROR_LIVE_CLOSED_ROOM = Biz.of(60004, "直播间已关闭");


    public static class Biz {

        public int code;
        public String message;

        public static Biz of(int code, String message) {
            return new Biz(code, message);
        }

        public Biz() {
        }

        public Biz(int code, String message) {
            this.code = code;
            this.message = message;
        }
    }

}
